#include <iostream>
using namespace std;

int main(int argc, char *argv[])
{
	long long n,a;
	a=1;
	cin>>n;
	for(int i=1;i<=n;i++){
		a*=(long long)i;
	}
	cout<<a<<endl;
	return 0;
}
